package com.yxinmiracle.goods.feign;

import com.yxinmiracle.goods.pojo.Spu;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @version 1.0
 * @author： YxinMiracle
 * @date： 2021-08-18 10:40
 */
@FeignClient(name = "goods",path = "/spu")
public interface SpuFeign {
    @GetMapping(value = "/{id}")
    Result<Spu> findById(@PathVariable(value = "id") Long id);
}
